package com.bed.lovewithpatientbed.service;

import com.bed.lovewithpatientbed.common.bean.LayUiPageBean;
import com.bed.lovewithpatientbed.pojo.Employee;
import com.bed.lovewithpatientbed.pojo.PageBean;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author myp
 * @version 1.0.0
 * @ClassName EmployeeService.java
 * @Description 雇员Service接口类
 */

public interface EmployeeService {
    /**
     * @title 增加雇员
     * @description
     * @author myp
     * @updateTime
     * @throws
     */
    Integer saveEmployee(Employee employee);
   /**
    * @title 删除雇员
    * @description 软删除，修改softdel属性
    * @author myp
    * @updateTime
    * @throws
    */
   Integer delEmployee(Employee employee);
   /**
    * @title 修改雇员信息
    * @description
    * @author myp
    * @updateTime
    * @throws
    */
   Integer updateEmployee(Employee employee);
    /**
     * @title 查询雇员列表
     * @description 按照条件组合查询，按照名字模糊查询、身份查询、入职时间查询、分页查询
     * @author myp
     * @updateTime
     * @throws
     */
    List<Employee> selectEmployeeList(LayUiPageBean pageBean, Employee employee, Date staData , Date endDate);
    /**
     * @title 查找一个雇员
     * @description 按照雇员编号查找雇员
     * @author myp
     * @updateTime
     * @throws
     */
    Employee selectEmployee(Integer employeeId);

    Integer getCount(Employee employee,  Date staData , Date endDate);
}
